package com.jy.api.wechat.service;


import com.jy.api.wechat.config.WxConfig;
import com.jy.api.wechat.config.WxGzh1Config;
import com.jy.api.wechat.handler.*;
import com.jy.api.wechat.handler.gzh1.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Primary
@Service
public class Gzh1WxService extends BaseWxService {
    @Autowired
    private WxGzh1Config wxConfig;

    @Autowired
    private Gzh1LocationHandler locationHandler;

    @Autowired
    private Gzh1MenuHandler menuHandler;

    @Autowired
    private Gzh1MsgHandler msgHandler;

    @Autowired
    private Gzh1UnSubscribeHandler unSubscribeHandler;

    @Autowired
    private Gzh1SubscribeHandler subscribeHandler;

    @Autowired
    private Gzh1ScanHandler scanHandler;

    @Override
    protected WxConfig getServerConfig() {
        return this.wxConfig;
    }

    @Override
    protected MenuHandler getMenuHandler() {
        return this.menuHandler;
    }

    @Override
    protected SubscribeHandler getSubscribeHandler() {
        return this.subscribeHandler;
    }

    @Override
    protected UnsubscribeHandler getUnsubscribeHandler() {
        return this.unSubscribeHandler;
    }

    @Override
    protected AbstractHandler getLocationHandler() {
        return this.locationHandler;
    }

    @Override
    protected MsgHandler getMsgHandler() {
        return this.msgHandler;
    }

    @Override
    protected ScanHandler getScanHandler() {
        return this.scanHandler;
    }

}
